const xmlString = `<view class="container" style="background:white">
<search-box is="packages/doctorwork/pages/searchResult/component/searchBox/index">
  <view class="searchBox-index--container" id="libaojun">
    <view class="searchBox-index--containerFixed">
      <view class="searchBox-index--searchContainer">
        <image class="searchBox-index--searchIcon" src="https://pubimg.xingren.com/8dbf43e1-8981-49ba-bb2c-3f3b0dfc209b.png" role="img"/>
        <input class="searchBox-index--searchInput" data-e-blur-so="this" data-e-confirm-a-a="true" data-e-confirm-so="this" data-e-focus-so="this" data-e-input-so="this" focus="" placeholder="/&#x9AD8;&#x8840;&#x538B;333&#x5931;&#x7720;/&#x9AD8;&#x8840;&#x538B;&#x5931;&#x7720;/&#x9AD8;321" value="" selection-start="-1" selection-end="-1" cursor="-1">/高血压123失眠/高血压失眠/高321</input>
      </view>
      <text class="searchBox-index--searchButton" data-content="&#x53D6;&#x6D88;" data-e-tap-so="this" style="color:rgba(34,34,34,1)">取消</text>
    </view>
  </view>
</search-box>
<search-history is="packages/doctorwork/pages/searchResult/component/searchHistory/index">
  <view class="searchHistory-index--container">
    <view>
      <view class="searchHistory-index--title">搜索历史<text class="searchHistory-index--clear" data-content="&#x6E05;&#x7A7A;" data-e-tap-so="this">清空</text></view>
      <view class="searchHistory-index--list">
        <view class="searchHistory-index--item" data-content="1" data-e-tap-a-a="1" data-e-tap-so="this">
          <text class="searchHistory-index--txt">1</text>
        </view>
        <view class="searchHistory-index--item" data-content="&#x6768;&#x98DE;" data-e-tap-a-a="&#x6768;&#x98DE;" data-e-tap-so="this">
          <text class="searchHistory-index--txt">杨飞</text>
        </view>
        <view class="searchHistory-index--item" data-content="&#x9AD8;&#x8840;&#x538B;" data-e-tap-a-a="&#x9AD8;&#x8840;&#x538B;" data-e-tap-so="this">
          <text class="searchHistory-index--txt">高血压</text>
        </view>
      </view>
    </view>
    <view>
      <view class="searchHistory-index--title">热门搜索</view>
      <view class="searchHistory-index--list">
        <view class="searchHistory-index--item searchHistory-index--0" data-content="&#x6768;&#x98DE;" data-e-tap-a-a="[object Object]" data-e-tap-so="this">
          <text class="searchHistory-index--txt">杨飞</text>
        </view>
        <view class="searchHistory-index--item searchHistory-index--0" data-content="&#x5934;&#x75DB;" data-e-tap-a-a="[object Object]" data-e-tap-so="this">
          <text class="searchHistory-index--txt">头痛</text>
        </view>
        <view class="searchHistory-index--item searchHistory-index--0" data-content="1" data-e-tap-a-a="[object Object]" data-e-tap-so="this">
          <text class="searchHistory-index--txt">1</text>
        </view>
        <view class="searchHistory-index--item searchHistory-index--0" data-content="&#x9AD8;&#x8840;&#x538B;" data-e-tap-a-a="[object Object]" data-e-tap-so="this">
          <text class="searchHistory-index--txt">高血压</text>
        </view>
        <view class="searchHistory-index--item searchHistory-index--0" data-content="&#x963F;&#x83AB;&#x897F;" data-e-tap-a-a="[object Object]" data-e-tap-so="this">
          <text class="searchHistory-index--txt">阿莫西</text>
        </view>
        <view class="searchHistory-index--item searchHistory-index--0" data-content="&#x6D4B;&#x8BD5;" data-e-tap-a-a="[object Object]" data-e-tap-so="this">
          <text class="searchHistory-index--txt">测试</text>
        </view>
        <view class="searchHistory-index--item searchHistory-index--0" data-content="11" data-e-tap-a-a="[object Object]" data-e-tap-so="this">
          <text class="searchHistory-index--txt">11</text>
        </view>
        <view class="searchHistory-index--item searchHistory-index--0" data-content="&#x5934;" data-e-tap-a-a="[object Object]" data-e-tap-so="this">
          <text class="searchHistory-index--txt">头</text>
        </view>
      </view>
    </view>
    <view class="searchHistory-index--title">企鹅杏仁门诊网络</view>
    <view>
      <image class="searchHistory-index--clinic" data-content="&#x4F01;&#x9E45;&#x674F;&#x4EC1;&#x95E8;&#x8BCA;&#x7F51;&#x7EDC;" data-e-tap-so="this" src="https://pubimg.xingren.com/af39adff-012f-4fa0-a3e9-ae45335c04aa.png" role="img"/>
    </view>
  </view>
</search-history>
<back-top is="packages/doctorwork/pages/searchResult/component/backTop/index">
  <view class="backTop-index--backTop">
    <image class="backTop-index--icon" src="/images/ic_back_top.png" role="img"/>
  </view>
</back-top>
</view>`;

const xmlObjet = {
  view: {
    $: { class: 'container', style: 'background:white' },
    'search-box': [
      {
        $: {
          is:
            'packages/doctorwork/pages/searchResult/component/searchBox/index',
        },
        view: [
          {
            $: { class: 'searchBox-index--container', id: 'libaojun' },
            view: [
              {
                $: { class: 'searchBox-index--containerFixed' },
                view: [
                  {
                    $: { class: 'searchBox-index--searchContainer' },
                    image: [
                      {
                        $: {
                          class: 'searchBox-index--searchIcon',
                          src:
                            'https://pubimg.xingren.com/8dbf43e1-8981-49ba-bb2c-3f3b0dfc209b.png',
                          role: 'img',
                        },
                      },
                    ],
                    input: [
                      {
                        _: '/高血压123失眠/高血压失眠/高321',
                        $: {
                          class: 'searchBox-index--searchInput',
                          'data-e-blur-so': 'this',
                          'data-e-confirm-a-a': 'true',
                          'data-e-confirm-so': 'this',
                          'data-e-focus-so': 'this',
                          'data-e-input-so': 'this',
                          focus: '',
                          placeholder: '/高血压123失眠/高血压失眠/高321',
                          value: '',
                          'selection-start': '-1',
                          'selection-end': '-1',
                          cursor: '-1',
                        },
                      },
                    ],
                  },
                ],
                text: [
                  {
                    _: '取消',
                    $: {
                      class: 'searchBox-index--searchButton',
                      'data-content': '取消',
                      'data-e-tap-so': 'this',
                      style: 'color:rgba(34,34,34,1)',
                    },
                  },
                ],
              },
            ],
          },
        ],
      },
    ],
    'search-history': [
      {
        $: {
          is:
            'packages/doctorwork/pages/searchResult/component/searchHistory/index',
        },
        view: [
          {
            $: { class: 'searchHistory-index--container' },
            view: [
              {
                view: [
                  {
                    _: '搜索历史',
                    $: { class: 'searchHistory-index--title' },
                    text: [
                      {
                        _: '清空',
                        $: {
                          class: 'searchHistory-index--clear',
                          'data-content': '清空',
                          'data-e-tap-so': 'this',
                        },
                      },
                    ],
                  },
                  {
                    $: { class: 'searchHistory-index--list' },
                    view: [
                      {
                        $: {
                          class: 'searchHistory-index--item',
                          'data-content': '1',
                          'data-e-tap-a-a': '1',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          { _: '1', $: { class: 'searchHistory-index--txt' } },
                        ],
                      },
                      {
                        $: {
                          class: 'searchHistory-index--item',
                          'data-content': '杨飞',
                          'data-e-tap-a-a': '杨飞',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          {
                            _: '杨飞',
                            $: { class: 'searchHistory-index--txt' },
                          },
                        ],
                      },
                      {
                        $: {
                          class: 'searchHistory-index--item',
                          'data-content': '高血压',
                          'data-e-tap-a-a': '高血压',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          {
                            _: '高血压',
                            $: { class: 'searchHistory-index--txt' },
                          },
                        ],
                      },
                    ],
                  },
                ],
              },
              {
                view: [
                  { _: '热门搜索', $: { class: 'searchHistory-index--title' } },
                  {
                    $: { class: 'searchHistory-index--list' },
                    view: [
                      {
                        $: {
                          class:
                            'searchHistory-index--item searchHistory-index--0',
                          'data-content': '杨飞',
                          'data-e-tap-a-a': '[object Object]',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          {
                            _: '杨飞',
                            $: { class: 'searchHistory-index--txt' },
                          },
                        ],
                      },
                      {
                        $: {
                          class:
                            'searchHistory-index--item searchHistory-index--0',
                          'data-content': '头痛',
                          'data-e-tap-a-a': '[object Object]',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          {
                            _: '头痛',
                            $: { class: 'searchHistory-index--txt' },
                          },
                        ],
                      },
                      {
                        $: {
                          class:
                            'searchHistory-index--item searchHistory-index--0',
                          'data-content': '1',
                          'data-e-tap-a-a': '[object Object]',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          { _: '1', $: { class: 'searchHistory-index--txt' } },
                        ],
                      },
                      {
                        $: {
                          class:
                            'searchHistory-index--item searchHistory-index--0',
                          'data-content': '高血压',
                          'data-e-tap-a-a': '[object Object]',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          {
                            _: '高血压',
                            $: { class: 'searchHistory-index--txt' },
                          },
                        ],
                      },
                      {
                        $: {
                          class:
                            'searchHistory-index--item searchHistory-index--0',
                          'data-content': '阿莫西',
                          'data-e-tap-a-a': '[object Object]',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          {
                            _: '阿莫西',
                            $: { class: 'searchHistory-index--txt' },
                          },
                        ],
                      },
                      {
                        $: {
                          class:
                            'searchHistory-index--item searchHistory-index--0',
                          'data-content': '测试',
                          'data-e-tap-a-a': '[object Object]',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          {
                            _: '测试',
                            $: { class: 'searchHistory-index--txt' },
                          },
                        ],
                      },
                      {
                        $: {
                          class:
                            'searchHistory-index--item searchHistory-index--0',
                          'data-content': '11',
                          'data-e-tap-a-a': '[object Object]',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          { _: '11', $: { class: 'searchHistory-index--txt' } },
                        ],
                      },
                      {
                        $: {
                          class:
                            'searchHistory-index--item searchHistory-index--0',
                          'data-content': '头',
                          'data-e-tap-a-a': '[object Object]',
                          'data-e-tap-so': 'this',
                        },
                        text: [
                          { _: '头', $: { class: 'searchHistory-index--txt' } },
                        ],
                      },
                    ],
                  },
                ],
              },
              {
                _: '企鹅杏仁门诊网络',
                $: { class: 'searchHistory-index--title' },
              },
              {
                image: [
                  {
                    $: {
                      class: 'searchHistory-index--clinic',
                      'data-content': '企鹅杏仁门诊网络',
                      'data-e-tap-so': 'this',
                      src:
                        'https://pubimg.xingren.com/af39adff-012f-4fa0-a3e9-ae45335c04aa.png',
                      role: 'img',
                    },
                  },
                ],
              },
            ],
          },
        ],
      },
    ],
    'back-top': [
      {
        $: {
          is: 'packages/doctorwork/pages/searchResult/component/backTop/index',
        },
        view: [
          {
            $: { class: 'backTop-index--backTop' },
            image: [
              {
                $: {
                  class: 'backTop-index--icon',
                  src: '/images/ic_back_top.png',
                  role: 'img',
                },
              },
            ],
          },
        ],
      },
    ],
  },
};



module.exports = { xmlString, xmlObjet };
